<extend name="Public:base" />
<block name="content">
	<form id="validation-form" method="post">
    <style type="text/css">
        li{
            list-style: none;;
        }
		table{
			text-align: center;
		}
		.mytableer tbody > tr > td{
			border: none;
		}
    </style>
   <div class="table-responsive">
    <table class="table table-striped table-bordered table-hover search-form">
			<thead>
		    <th>时间：<input id="startDate" style="width:135px;" name="start_time" value="{:I('start_time')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/> - <input id="endDate" name="end_time" style="width:135px;" value="{:I('end_time')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>

		    订单号：<input name="order_id" type="text" placeholder="" value="{:I('order_id')}" style="width:95px;" />

		    用户姓名：<input name="user_name" type="text" placeholder="" value="{:I('user_name')}" style="width:55px;" />

		    用户电话：<input name="user_phone" type="text" placeholder="" value="{:I('user_phone')}" style="width:55px;" />

		    师傅姓名：<input name="master_name" type="text" placeholder="" value="{:I('master_name')}" style="width:55px;" />

		    师傅电话：<input name="master_phone" type="text" placeholder="" value="{:I('master_phone')}" style="width:55px;" />


				<a class="btn btn-primary btn-sm radius5" href="javascript:;" id="search" url="{:U('Order/Refund')}">查询</a>
				</th>
			</thead>
		</table>
   </div>
</form>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover" id="mytable">
		<thead>
			<tr>
				<th>订单基本信息</th>
				<th>服务项目</th>
				<th>会员信息</th>
				<th>师傅信息</th>
				<th>地址</th>
				<th>服务方式</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
				<volist name="refund" id="vo">
				<tr>
					<td>订单号：{$vo.repair_order_num_alias}<br>下单时间：{$vo.set_time}</td>
					<td>服务项目：{$vo.category_name}<br>故障：{$vo.fault_name}</td>
					<td>{$vo.user_name}<br>{$vo.user_phone}</td>
					<td><php>if($vo['type']==0){</php>等待师傅接单<php>}else{</php>{$vo.master_name}<br>电话：{$vo.master_phone}<br>身份证：{$vo.master_num}<php>}</php></td>
					<td>{$vo.shipping_addr}</td>
					<td>{$vo.mode_charging}</td>
					<td>{$vo.name}</td>
					<td><a href="{:U('Order/normal')}/order_id/{$vo.repair_order_id}/status/refund" class="btn btn-xs btn-info radius5">查看订单</a></td>
					</tr>
				</volist>
				<tr>
					<td colspan="20" class="page">{$page}</td>
				</tr>
		</tbody>
	</table>
</div>


</block>
<block name="javascript">
<script>
$(function(){
	$("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });

});
</script>
</block>